home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
comm
/
net
/
AmiComSys.lha
/
AmiComSys
/
rexx
/
Ping.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-01-25
|
773b
|
26 lines
/* ARexx script to Ping someone */
/* For use with AmiComSys 1.12+ */
/* Ping must be in the AMITCP:bin directory or */
/* MiamiPing must be in the MIAMI: directory */
/* $VER: Ping.rexx 1.1 (15.1.97) Håkan Parting */
ADDRESS AMICOMSYS;
OPTIONS RESULTS;
GET stem info. CLIENTLIST;
/* "stem info." inserts the results to the structure 'info.'. */
/* "var s" would have inserted all the results to one string in s. */
/* "CLIENTLIST": We want to read the client list information. */
s=info.selected;
if show('P','MIAMI.1') then
do
ADDRESS COMMAND "MIAMI:MiamiPing " info.hostnames.s;
Exit
end
ADDRESS COMMAND "AMITCP:bin/Ping " info.hostnames.s;
/* To start another application just change ping to any other
program name and remove the 'if show do end' block*/
EXIT;